<!--
 * @Author: “ChengNan” 1429323234@qq.com
 * @Date: 2024-03-29 10:53:15
 * @LastEditors: “ChengNan” 1429323234@qq.com
 * @LastEditTime: 2024-06-20 16:13:00
 * @FilePath: /src/views/2.keepAlive/keepAlive.vue
 * @Description: keepAlive缓存
-->
<template>
  <div>
    <h1>keepAlive缓存</h1>
    <br>
    <router-link to="/keepAlive/keepAlive1">to src/views/modules/keepAlive1.vue </router-link>
    <br>
    <router-link to="/keepAlive/keepAlive2">to src/views/modules/keepAlive2.vue </router-link>
    <br>
    <keep-alive v-if="$route.meta.keepAlive">
      <router-view></router-view>
    </keep-alive>
  </div>
</template>

<script>
  export default {
    
  }
</script>

<style lang="scss" scoped>

</style>